﻿<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head><link rel="stylesheet" href="${ctx}/common/common.css">
    <title>Title</title>
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="${ctx}/common/plugins/layuiadmin/style/admin.css" media="all">
    <script src="${ctx}/common/plugins/layuiadmin/layui/layui.js"></script>
    
    <style type="text/css">
    	.rowtop{
    		padding: 10px
    	}
    	.valtop{
    		padding: 9px
    	}
    </style>
</head>
<body>
<form class="layui-form" action="${ctx}/enterprise/saveEnterprise" method="post" enctype="multipart/form-data">
	<div class="layui-fluid">
    <input type="hidden" name="id" value="${tenterprise.id}" />
    <input type="hidden" name="deleteFlag" value="0" />
    <div class="layui-row rowtop" style="margin-top: 20px;">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">销货单编号</label>
	        <div class="layui-input-block valtop">
	            ${billMap.goodsCode}
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">客户</label>
	        <div class="layui-input-block valtop">
	            ${billMap.customName}
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
    	<div class="layui-col-md5">
    		<label class="layui-form-label">产品名称</label>
		  	<div class="layui-input-block valtop">
				${billMap.productName}
			</div>
    	</div>
    	<div class="layui-col-md5">
    		<label class="layui-form-label">产品标准号</label>
    		<div class="layui-input-block valtop">
				${billMap.perfStandard}
			</div>
    	</div>
    </div>
    <div class="layui-row rowtop">
    	<div class="layui-col-md5">
	    	<label class="layui-form-label">规格/单位</label>
			<div class="layui-input-block valtop">
				${billMap.specifications_unit }
			</div>
		</div>
    	<div class="layui-col-md5">
	    	<label class="layui-form-label">联系人</label>
			<div class="layui-input-block valtop">
				${billMap.contacts}
			</div>
		</div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">联系电话</label>
	        <div class="layui-input-block valtop">
	            ${billMap.phone}
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">收货地址</label>
	        <div class="layui-input-block valtop">
	            ${billMap.recAddress}
	        </div>
	    </div>
    </div>
    <div class="layui-row rowtop">
	    <div class="layui-col-md5">
	        <label class="layui-form-label">订单日期</label>
	        <div class="layui-input-block valtop">
	            <fmt:formatDate value='${billMap.orderDate}' pattern="yyyy-MM-dd"/>
	        </div>
	    </div>
	    <div class="layui-col-md5">
	        <label class="layui-form-label">数量</label>
	        <div class="layui-input-block valtop">
	         ${billMap.goodsDetailQuantity}
	        </div>
	    </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button type="button" id="rollback" class="layui-btn layui-btn-primary">返回</button>
        </div>
    </div>
    </div>
</form>

<script>
    document.getElementById("rollback").addEventListener("click",function(){
        window.history.back();
    })
    //Demo
    layui.use('form', function(){
        var form = layui.form;

        //监听提交
        form.on('submit(formDemo)', function(data){
           layer.load(1, {
                shade: [0.1,'#fff'] //0.1透明度的白色背景
            });
            $("#formBtn").attr("disabled",true);
        });
    });

    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#approval_time' //指定元素
            ,type: 'datetime'
        });
    });
</script>
</body>
</html>





